import { requestClient } from '#/api/request';


//查询认证列表
export async function getCertificationInfoByConditionApi(params: any) {
  return requestClient.get('/certification/get-certification-info-by-condition', {params});
}

//带关键字查询认证列表
export async function getCertificationInfoByConditionWithKeywordApi(params: any) {
  return requestClient.get('/certification/get-cer-or-org-list-page', {params});
}

// 查询证书列表
export async function getCertificatePageApi(params: any) {
  return requestClient.get('/certification/get-certificate-page', {params});
}

// 更新证书状态
export async function updateCertificateStatusApi(params: any) {
  return requestClient.patch('/certification/update-certificate-status', params);
}

// 创建证书
export async function createCertificateApi(params: any) {
  return requestClient.post('/certification/create-user-certificate', params);
}
